AI search apps like Perplexity.ai are really cool. They use an LLM to answer your questions, but pull in real-time search results to augment the answer (eg RAG) and list citations. I wanted to know how it works and decided to build my own version. Getting it to work is surprisingly simple and...
When using Fragments in tabs, the FragmentManager takes care of instantiating, retaining, and reusing Fragments. The problem there is that a tag for a fragment is auto-generated. If we want to reuse that exact Fragment in a different layout (like when the device is rotated), we need to extrac...
If you’re writing an Android App using a MapView, then you will most likely want to view the user’s location. This tutorial will show you how to create an activity that makes use of Android’s built-in MyLocationOverlay class.
Wanting to change the default TabWidget look and feel for Android? In this tutorial, we will investigate a few different ways to customize your app’s tabs.With Android SDK 1.6 and above, the SDK allows you to set a View as the tab instead of just text and an icon. We use be using that techniq...
The goal in this tutorial is to have a list of geo coordinates and when we click on an item in the list, our map view goes to that location.
In this tutorial, we will create a slightly more advanced application. We will have two listviews as the content of a tabactivity and have them interact with one another (basically by clicking the items of one list view will add them to the second list view).
Last football (fantasy) season, my league had a live draft. I didn’t want to do the old magazines, web printouts, highlighter, scratch paper, etc deal, so I decided to write a simple GUI that showed me the fantasy ranks from various online sports sites. Of course, once a player is removed, I ...
Implemented the BK Tree the algorithm myself in Java and posted the result to google code